package com.base.service;

import java.io.Serializable;
import java.util.List;

public interface IBaseService<T,PK extends Serializable>{

	public void save(T o);
	public void delete(PK id);
	public void update(T o);
	public void saveOrUpdate(T o);

	public T get(PK id);
	public List<T> getAll();
	public List<T> getAll(String hql);
	public List<T> getAll(String hql, int page, int rows);
	public int count(String hql);
	
}
